package main

import (
	"my_go_open/utils"
)

func main() {
	a := 1
	b := []int{1, 2, 3, 4}
	c, _ := utils.InArray(a, b)
	println(c)
	d := []string{"aa", "bb", "cc"}
	e, _ := utils.InArray(a, d)
	println(e)
	f := map[string]int{
		"aa": 1,
		"bb": 2,
	}
	g, _ := utils.InArray(a, f)
	println(g)
	h := make(chan int, 3)
	i, j := utils.InArray(a, h)
	if j != nil {
		println(j.Error())
	} else {
		println(i)
	}
}
